package com.demo.springboothexadecimalconversion.hextobyte;

import java.math.BigDecimal;

/**
 * @author Hanson
 * @date 2023/2/7 16:41
 */
public class Demo {

    public static void main(String[] args) {
//        String a = "127.12312345";
//        Double b = Double.parseDouble(a);

        StringBuffer stringBuffer = new StringBuffer("1271231234");
        StringBuffer insert = stringBuffer.insert(stringBuffer.length() - 7, ".");
        double b = Double.parseDouble(insert.toString());
        //BigDecimal bigDecimal = new BigDecimal(a);

        System.out.println(b);
//        System.out.println(c);
//        System.out.println(c);


    }

}
